<?php

session_start();
if (isset($_SESSION['type']) && $_SESSION['type'] == "students") {
    header('Location: ../views/staff_home.php');
} else if (isset($_SESSION['type']) && $_SESSION['type'] == "admin") {
    header('Location: ../views/staff_list.php');
} else {
    header('Location: ../views/login.php');
}